package com.liu.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PageBeanJson<T> {
    private int code = 0; //状态码,默认为0,表示失败
    private String msg; //说明消息
    private long count; //条数
    private List<T> data; //查询的数据
    public static <T> PageBeanJson bean(long count,List<T> list){
        return new PageBeanJson(0,"OK",count,list);
    }
}
